<script type="text/javascript">
	$(document).ready(function(){
		var $items = $("ul#menu li a.haanh");
		$items.eq(<?php if(isset($act)){echo $act;}else{ echo 0;} ?>).addClass("selected_lk");
	});
</script>
<div id="header_main_menu">
		<span id="header_main_menu_bg"></span>
		<div id="header">
			<div class="inner">
				<h1 id="logo"><a href="<?php echo base_url()."agency/index"; ?>"><img src="<?php echo base_url(); ?>public/images/logo.png" /></a></h1>
				<div id="user_details">
					<ul id="user_details_menu">
						<li class="welcome">Welcome <strong><?php echo $this->session->userdata("ses_user"); ?>(<a class="new_messages" href="#">0 new message</a>)</strong></li>
						<li>
							<ul id="user_access">
								<li class="first"><a href="javascript:void(0)" target="_blank">View home</a></li>
								<li class="last"><a href="<?php echo base_url()."admin/verify/logout";?>">Log out</a></li>
							</ul>
						</li>
					</ul>
					<div id="server_details">
						<dl>
							<dt>Server time :</dt>
							<dd>9:22 AM | 03/04/2009</dd>
						</dl>
						<dl>
							<dt>Last login ip :</dt>
							<dd>192.168.0.25</dd>
						</dl>
					</div>
				</div>
			</div>
		</div>
		<div id="main_menu">
			<div class="inner">
			<ul id="menu">
				<li><a href="<?php echo base_url()."agency/index"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Home</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."agency/ordership/listall"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Manage booking</em><span></span></span><span class="r"><span></span></span></a>
                	<ul>
                    <?php if(isset($listall)){ ?>
                    <?php foreach($listall as $cruise){ ?>
                    	<li><a href="<?php echo base_url()."agency/ordership/index/".$cruise['sheep_id']; ?>"><?php echo $cruise['sheep_name']; ?></a></li>
                    <?php } } ?>
                    </ul>
                </li>
                <li><a href="<?php echo base_url()."agency/user"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Your account</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."agency/cruises"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Manage cruises</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."agency/checkrate/pricemanager"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Price of cruises</em><span></span></span><span class="r"><span></span></span></a></li>
                <li><a href="<?php echo base_url()."agency/promotion"; ?>" class="haanh"><span class="l"><span></span></span><span class="m"><em>Promotions</em><span></span></span><span class="r"><span></span></span></a></li>
			</ul>
			</div>
			<span class="sub_bg"></span>
		</div>
		</div>